package com.itany.ums.service;

import com.itany.ums.entity.User;
import com.itany.ums.exception.PasswordErrorException;
import com.itany.ums.exception.UserNotExistException;

/**
 * @author shixiaojun@itany
 */
public interface UserService {

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    User login(String username,String password) throws UserNotExistException, PasswordErrorException;

}
